package com.suzhe.ymall.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author suzhe
 * @since 2019-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order")
@ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单编号")
    @TableId(value = "order_no", type = IdType.INPUT)
    private String orderNo;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "总金额，单位为分")
    private Long totalPay;

    @ApiModelProperty(value = "实付金额。单位:分")
    private Long actualPay;

    @ApiModelProperty(value = "收获地址（省）")
    private String receiverProvince;

    @ApiModelProperty(value = "收获地址（市）")
    private String receiverCity;

    @ApiModelProperty(value = "收获地址（区/县）")
    private String receiverCounty;

    @ApiModelProperty(value = "收获地址（街道、住址等详细地址）")
    private String receiverAddress;

    @ApiModelProperty(value = "收货人手机")
    private String receiverMobile;

    @ApiModelProperty(value = "收货人邮编")
    private String receiverZip;

    @ApiModelProperty(value = "收货人")
    private String receiver;

    @ApiModelProperty(value = "是否删除 0 否，1 是")
    private Boolean deleted;

    @ApiModelProperty(value = "创建者")
    private Integer creater;

    @ApiModelProperty(value = "更新者")
    private Integer updater;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
